import ElementPlus from 'element-plus'
import { ElMessage } from 'element-plus'
import 'element-plus/dist/index.css'
import { defineClientConfig } from '@vuepress/client'

export default defineClientConfig({
    enhance({ app, router, siteData }) {
        app.use(ElementPlus)
    },
    setup() {
        ElMessage({
            message: '欢迎光临！',
            center: true,
            customClass: 'el-message-a'
        })
    },
    rootComponents: [],
})